themeContext.set_theme (theme);
}
+/**
+ * notify:
+ * @msg: A message
+ * @details: Additional information
+ */
+function notify(msg, details) {
+ let source = new MessageTray.SystemNotificationSource();
+ messageTray.add(source);
+ let notification = new MessageTray.Notification(source, msg, details);
+ notification.setTransient(true);
+ source.notify(notification);
+}
+
/**
* notifyError:
* @msg: An error message
else
log("error: " + msg)
- let source = new MessageTray.SystemNotificationSource();
- messageTray.add(source);
- let notification = new MessageTray.Notification(source, msg, details);
- notification.setTransient(true);
- source.notify(notification);
+ notify(msg, details);
}
/**